Modify examples for empty brace spaces rule#801
Modify examples for empty brace spaces rule#801isnifer wants to merge 1 commit intooxc-project:mainfrom
Conversation
Updated examples to include spaces in empty braces. Signed-off-by: Anton Kuznetsov <1788245+isnifer@users.noreply.github.com>
✅ Deploy Preview for oxc-project ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
This one is unfortunately due to us using oxfmt to reformat the docs, I think we probably need to add a "disable" comment here somehow to prevent oxfmt from reformatting this section of the page, but I'm not totally sure. You can see that it's correct in the original rust doc comment: https://github.com/oxc-project/oxc/blob/22298236813777743a3d7ce3f29e819e596dcd26/crates/oxc_linter/src/rules/unicorn/empty_brace_spaces.rs |
|
@connorshea yeah, I thought the same way. Hope you'll find an opportunity to make it right. |
|
It looks like adding the ignore comments worked when I tested it locally, so this'll be fixed by oxc-project/oxc#18203, and all these changes will show up after we regenerate the docs tomorrow 👍 Thanks! |
…8203) Add ignore comments to prevent oxfmt/prettier reformatting the example code here. Pointed out by oxc-project/website#801
|
all three of these are now fixed on the live site, thanks again! |
Updated examples to include spaces in empty braces.